package io.renren.modules.ranking.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.ranking.dao.IllegalVehicleDao;
import io.renren.modules.ranking.entity.IllegalVehicleEntity;
import io.renren.modules.ranking.service.IllegalVehicleService;



@Service("illegalVehicleService")
public class IllegalVehicleServiceImpl implements IllegalVehicleService {
	@Autowired
	private IllegalVehicleDao illegalVehicleDao;

	public IllegalVehicleEntity queryRanking(Integer Ranking){
		return illegalVehicleDao.queryRanking(Ranking);
	}

	@Override
	public IllegalVehicleEntity queryObject(Integer id){
		return illegalVehicleDao.queryObject(id);
	}
	
	@Override
	public List<IllegalVehicleEntity> queryList(Map<String, Object> map){
		return illegalVehicleDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return illegalVehicleDao.queryTotal(map);
	}
	
	@Override
	public void save(IllegalVehicleEntity illegalVehicle){
		illegalVehicleDao.save(illegalVehicle);
	}
	
	@Override
	public void update(IllegalVehicleEntity illegalVehicle){
		illegalVehicleDao.update(illegalVehicle);
	}
	
	@Override
	public void delete(Integer id){
		illegalVehicleDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		illegalVehicleDao.deleteBatch(ids);
	}
	
}
